package com.weixin.test;

import org.apache.log4j.Logger;

public class Log4jDemo {
	
	public static void main(String[] args) {
		new PrintMsg();
	}
	
	
}


class PrintMsg {
	
	Logger logger = Logger.getLogger(PrintMsg.class);
	
	public PrintMsg(){
		logger.info(">>这是PrintMsg.class 的构造函数");
		printMsg();
	}
	
	public void printMsg() {
		logger.error("这是输出异常的日志:logger.error");
	}
	
	
}